package com.ddwl.schema.bo.goods;

import com.ddwl.schema.bo.base.BaseBo;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import java.math.BigDecimal;
import java.util.List;

@Getter
@Setter
//@Document(indexName = "item",type = "doc",useServerConfiguration = true,createIndex = false)
public class EsItemBo extends BaseBo {
    @ApiModelProperty("ID")
    private String id;
    @ApiModelProperty("商品名称")
//    @Field(type = FieldType.Text,analyzer = "ik_max_word")
    private String itemName;
    @ApiModelProperty("品牌ID")
    private String brandId;
    @ApiModelProperty("商户ID")
    private String mchId;
    @ApiModelProperty("门店ID")
    private String shopId;
    @ApiModelProperty("零售价")
    private BigDecimal retailPrice;
    @ApiModelProperty("会员价")
    private BigDecimal vipPrice;
    @ApiModelProperty("原价")
    private BigDecimal originPrice;
    @ApiModelProperty("商品描述")
    private String itemDesc;
    @ApiModelProperty("商品状态")
    private Integer itemStatus;
    @ApiModelProperty("商品编码")
    private String itemCode;
    @ApiModelProperty("商品条码")
    private String barcode;
    @ApiModelProperty("推荐")
    private Boolean recommend;
    @ApiModelProperty("销量")
    private Integer sales;
    @ApiModelProperty("活动标识")
    private String activity_sgin;
    @ApiModelProperty("评分")
    private Float star;
    @ApiModelProperty("属性列表")
    private String attributeList;
    @ApiModelProperty("sku信息")
    private List<SkuBo> skus;
    @ApiModelProperty("商品排序")
    private Integer itemSort;
    @ApiModelProperty("商品图片")
    private List<ItemMediaBo> medias;
    @ApiModelProperty("分类")
//    @Field(type = FieldType.Text,analyzer = "ik_max_word")
    private CategoryBo categorie;
    @ApiModelProperty("虚拟销量")
    private Integer falseSales;
    @ApiModelProperty("商品预估佣金")
    private BigDecimal itemCommission;
}
